package net.monare.mifss.evn;

import com.vaadin.ui.Button;
import com.vaadin.ui.UI;
import net.monare.mifss.admin.ui.win.ReCreateStorageWindow;
import net.monare.mifss.configurations.pojo.StorageDef;

public class ReCreateSelectedStorageListener implements Button.ClickListener{

    //
    //
    private StorageDef storageDef;

    public ReCreateSelectedStorageListener(StorageDef storageDef) {
        this.storageDef = storageDef;
    }

    @Override
    public void buttonClick(Button.ClickEvent event) {
        UI.getCurrent().addWindow(new ReCreateStorageWindow(storageDef));
    }


}
